import Vue from 'vue'
import Vuex from 'vuex'
import gallery from './modules/gallery'
import products from './modules/products'
import admin from './modules/admin'
import graphicMsg from './modules/graphicMsg'
import creditProduct from './modules/creditProduct'
import user from './modules/user'

Vue.use(Vuex)

const debug = process.env.NODE_ENV !== 'production'

export default new Vuex.Store({
  modules: {
    gallery,
    products,
    admin,
    graphicMsg,
    creditProduct,
    user,
  },
  strict: debug,
})
